using System;

namespace DatabaseBackup.Models
{
    /// <summary>
    /// MySQL数据库配置
    /// </summary>
    public class MySqlDatabaseConfig
    {
        /// <summary>
        /// 数据库名称
        /// </summary>
        public string DatabaseName { get; set; }

        /// <summary>
        /// 服务器地址
        /// </summary>
        public string Server { get; set; } = "localhost";

        /// <summary>
        /// 端口号
        /// </summary>
        public int Port { get; set; } = 3306;

        /// <summary>
        /// 用户名
        /// </summary>
        public string Username { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 是否启用备份
        /// </summary>
        public bool Enabled { get; set; } = true;
    }
}
